package com.cndw.kungfu.vo;

import com.cndw.kungfu.domain.Skill;

/**
 * 玩家当前的技能
 * @author fantadust
 * @date 2011-5-7 下午05:17:12
 */
public class SkillVO {
	//技能唯一id
	private int skillId;
	/**
	 * 技能根id
	 */
	private int skillLibId;
	/**
	 * 技能等级
	 */
	private int level;
	/**
	 * 技能配置vo
	 */
	private SkillModeVO skillModeVO;	
	/**
	 * 被动属性值
	 */
	private int passiveType;
	private int passiveValue;
	public SkillVO(Skill skill){
		skillId = skill.getSkillId();
		skillLibId = skill.getSkillLibId();
		level = skill.getLevel();
		skillModeVO = skill.getSkillMode().toSkillModeVO();
		passiveType = skill.getSkillMode().getPassiveType();
		passiveValue = skill.getSkillMode().getPassiveValue();
	}
	public int getSkillId() {
		return skillId;
	}
	public void setSkillId(int skillId) {
		this.skillId = skillId;
	}
	public int getSkillLibId() {
		return skillLibId;
	}
	public void setSkillLibId(int skillLibId) {
		this.skillLibId = skillLibId;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public SkillModeVO getSkillModeVO() {
		return skillModeVO;
	}
	public void setSkillModeVO(SkillModeVO skillModeVO) {
		this.skillModeVO = skillModeVO;
	}
	public int getPassiveValue() {
		return passiveValue;
	}
	public void setPassiveValue(int passiveValue) {
		this.passiveValue = passiveValue;
	}
	public int getPassiveType() {
		return passiveType;
	}
	public void setPassiveType(int passiveType) {
		this.passiveType = passiveType;
	}
}
